
<?php echo css_asset("printstyle.css"); ?>
<h1>Laporan Bulan Ini</h1>
<?php
echo "<table width='100%' class='table table-bordered table-striped'>";
    $last_day = date("t");
        echo "<tr><th>Tanggal</th>";
        foreach($loket as $lokets){
            echo "<th>$lokets->loket_kode</th>";
        }
        echo "<th>Total</th>";
        echo "</tr>";
    for($i=1; $i<= $last_day; $i++){
        echo "<tr><td>$i ".date("M Y")."</td>";
        foreach($loket as $lokets){
        echo "<td>".((@$data[$i]["loket"][$lokets->loket_id] == "")?0:@$data[$i]["loket"][$lokets->loket_id] )."</td>";
        }
        echo "<td>".((@$data[$i]["jml"] == "" )?0:@$data[$i]["jml"])."</td>";
        echo "</tr>";
    }
echo "</table>";
?>
<script>
    print();
    </script>